<template>
    <div>
        <el-header style="background-color: cornflowerblue;height: 70px;border-radius: 4px" >
<!--            <el-input type="text">中原工学院身份管理系统</el-input>-->
<!--            <div class="pig"><img src="../assets/logo.png"></div>-->
            <div class="index">中原工学院身份管理系统</div>
        </el-header>
        <el-container style="height: 100vh; border: 1px solid #eee">
            <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
                <!--                        <el-menu router default-openeds="['0','1']">-->
                <el-menu router>
                    <el-submenu v-for="(item,index) in $router.options.routes" :index="index+''" v-if="item.show">
                        <template slot="title"><i class="el-icon-setting"></i>{{item.name}}</template>
                        <el-menu-item v-for="item2 in item.children" :index="item2.path+''"
                                      :class="$route.path==item2.path?'is-active':''" v-if="item2.show">{{item2.name}}</el-menu-item>
                    </el-submenu>
                </el-menu>
            </el-aside>
            <el-main>
                <router-view></router-view>
            </el-main>

        </el-container>
    </div>


</template>

<script>
    export default {
        name: "Index"
    }
</script>

<style scoped>
    .pig{
        justify-content: center;
        align-items: center;
        display: flex;
        width: 100%;
        height: 100%;
        font-weight: 600;
        font-size: 30px;
    }
    .index {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-weight: 600;
        font-size: 30px;
        color: whitesmoke;
    }
</style>